import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './action'

Vue.use(Vuex)

// 骑士卡插件映射集合
const pluginMethod = {
	base_addPullToRefresh: actions.base_addPullToRefresh,
	base_finishPullToRefresh: actions.base_finishPullToRefresh,
	base_removePullToRefresh: actions.base_removePullToRefresh,
	base_startLoading: actions.base_startLoading,
	base_stopLoading: actions.base_stopLoading,
	base_phoneIsExistApp: actions.base_phoneIsExistApp,
	base_listenBackButton: actions.base_listenBackButton,
	base_requestLocation_new: actions.base_requestLocation_new,
	base_requestLocation: actions.base_requestLocation,
	startNavigate : actions.startNavigate,
	getAppVersion: actions.getAppVersion,
	pay_checkoutPlatform: actions.pay_checkoutPlatform,
	base_backToHome: actions.base_backToHome,
	account_loginSuccess: actions.account_loginSuccess,
	account_logoutSuccess: actions.account_logoutSuccess,
	account_appSocialSnsLogin: actions.account_appSocialSnsLogin,
	account_getInfo: actions.account_getInfo,
	base_saveToAlbum: actions.base_saveToAlbum,
	imageviewer: actions.imageviewer,
	base_share: actions.base_share,
	base_setStatusColor: actions.base_setStatusColor,
	base_setNativeClipboard: actions.base_setNativeClipboard,
	base_getNativeClipboard: actions.base_getNativeClipboard,
	nativePay: actions.nativePay,
	base_backToPreviousPage: actions.base_backToPreviousPage,
	getSystemVersion: actions.getSystemVersion,
	openGamePage: actions.openGamePage,
	base_goBackPage: actions.base_goBackPage,
	base_destroyPage: actions.base_destroyPage,
	base_showNativeActionSheet: actions.base_showNativeActionSheet,
	base_rate: actions.base_rate,
	appRate: actions.appRate,
	native_scan: actions.native_scan,
	base_localStorageSetItem: actions.base_localStorageSetItem,
	base_localStorageGetItem: actions.base_localStorageGetItem,
	base_localStorageClean: actions.base_localStorageClean,
	base_localStorageRemoveItem: actions.base_localStorageRemoveItem,
	base_localStorageAllItems: actions.base_localStorageAllItems,
	alibc_login: actions.alibc_login,
	showAli_TradePage_New: actions.showAli_TradePage_New,
	jd_openAppWebViewPage: actions.jd_openAppWebViewPage,
	alibc_isLogin: actions.alibc_isLogin,
	userVisitorMode: actions.userVisitorMode,
	chat_switchInputToolStatus: actions.chat_switchInputToolStatus,
	appTextResignFirstResponder: actions.appTextResignFirstResponder,
	base_openKeyboard: actions.base_openKeyboard,
	jump_goVisitor: actions.jump_goVisitor,
	fetchData: actions.fetchData,

	trackingIO_registerAccount: actions.trackingIO_registerAccount,
	trackingIO_loginAccount: actions.trackingIO_loginAccount,
	trackingIO_startPay: actions.trackingIO_startPay,
	trackingIO_finishPay: actions.trackingIO_finishPay,
	trackingIO_setEvent: actions.trackingIO_setEvent,
	trackingIO_setProfile: actions.trackingIO_setProfile,


	base_navbarRightPopover: actions.base_navbarRightPopover,
	base_toast: actions.base_toast,
	base_controlLeftPanGesture: actions.base_controlLeftPanGesture,
	base_webviewTitle: actions.base_webviewTitle,
	base_setTopNavbarFadeIn: actions.base_setTopNavbarFadeIn,
	base_navbarRightButtons: actions.base_navbarRightButtons,
	base_customNavbarRightButton: actions.base_customNavbarRightButton,
	base_navbarLeftButtons: actions.base_navbarLeftButtons,
	appCustomRightBarList: actions.appCustomRightBarList,
	base_setTopBackBtnState: actions.base_setTopBackBtnState,
	playRewardAdVideo: actions.playRewardAdVideo,
	showBannerAd: actions.showBannerAd,
	dismissBannerAd: actions.dismissBannerAd,
	showFeedAd: actions.showFeedAd,
	dismissFeedAd: actions.dismissFeedAd,
	fectchShoppingCartPage: actions.fectchShoppingCartPage,
	getPhoneModel: actions.getPhoneModel,
	tuiAFetchCustomAd: actions.tuiAFetchCustomAd,
	saveContentToCalendar: actions.saveContentToCalendar,
	removeContentFromCalendar: actions.removeContentFromCalendar,
	checkContentInCalendar: actions.checkContentInCalendar,

	jump_permission_setting: actions.jump_permission_setting,
	native_requestPermissions: actions.native_requestPermissions,
	native_hasPermissions: actions.native_hasPermissions,

	native_playItem: actions.native_playItem,
	backToTop: actions.backToTop,
	base_showNavigationBar: actions.base_showNavigationBar,
	base_reloadWebView: actions.base_reloadWebView,
	hiddenPayCard: actions.hiddenPayCard,

	updateUserInfo: actions.updateUserInfo,
	jumpLogin: actions.jumpLogin,

	postNotice: actions.postNotice,
	base_h5ServicesCallback: actions.base_h5ServicesCallback,
	fetch_orderData: actions.fetch_orderData,
	apply_orderData: actions.apply_orderData,

	growingIO: actions.growingIO,
	showNews: actions.showNews,
	showDrawVideo: actions.showDrawVideo,

	requestUserContactBook: actions.requestUserContactBook,
	addUserContact: actions.addUserContact,
	shareWxMiniProgram: actions.shareWxMiniProgram,
	openMiniProgram: actions.openMiniProgram,

	fectchSqbSuperDialog: actions.fectchSqbSuperDialog,

	getMac: actions.getMac,

	ui_scrollHorizontalRect: actions.ui_scrollHorizontalRect,
	base_customNavbarLeftButton: actions.base_customNavbarLeftButton,
	
}

const dsbridgePluginMethodLists = {
	
}

const state = {
	pluginMethod : pluginMethod
}

// 平台


export default new Vuex.Store({
	state,
	actions,
	mutations
})